//
//  QLRecordParam.m
//  QLCustomCamera_Example
//
//  Created by 李强 on 2020/8/31.
//  Copyright © 2020 李强LiQ. All rights reserved.
//

#import "QLRecordParam.h"

@implementation QLRecordParam


//基本类型
+(instancetype)recordConfigWithVideoRatio:(QLShootRatio)ratio position:(AVCaptureDevicePosition)position maxRecordTime:(CGFloat)maxTime minRecordTime:(CGFloat)minTime isCompression:(BOOL)isCompression currentVC:(UIViewController*)currentVC
{
    return [self recordConfigWithVideoRatio:ratio position:position maxRecordTime:maxTime minRecordTime:minTime isCompression:isCompression waterMark:nil currentVC:currentVC];
}


//带水印
+(instancetype)recordConfigWithVideoRatio:(QLShootRatio)ratio position:(AVCaptureDevicePosition)position maxRecordTime:(CGFloat)maxTime minRecordTime:(CGFloat)minTime isCompression:(BOOL)isCompression waterMark:(NSString*)waterMark currentVC:(UIViewController*)currentVC
{
    return [self recordConfigWithVideoRatio:ratio shootMode:photoVideoMode position:position maxRecordTime:maxTime minRecordTime:minTime isCompression:isCompression waterMark:waterMark isFilter:NO isShowBeautyBtn:NO isShowAlbumBtn:NO currentVC:currentVC];
}

//带水印,加滤镜
+(instancetype)recordConfigWithVideoRatio:(QLShootRatio)ratio shootMode:(QLShootMode)shootMode position:(AVCaptureDevicePosition)position maxRecordTime:(CGFloat)maxTime minRecordTime:(CGFloat)minTime isCompression:(BOOL)isCompression waterMark:(NSString*)waterMark isFilter:(BOOL)isFilter isShowBeautyBtn:(BOOL)isShowBeautyBtn isShowAlbumBtn :(BOOL)isShowAlbumBtn currentVC:(UIViewController*)currentVC
{
    QLRecordParam *params = [[QLRecordParam alloc]init];
    params.ration = ratio;
    params.position = position;
    params.maxTime = maxTime;
    params.minTime = minTime;
    params.isCompression = isCompression;
    params.isFilter = isFilter;
    params.waterMark = waterMark;
    params.currentVC = currentVC;
    params.isShowBeautyBtn = isShowBeautyBtn;
    params.isShowAlbumBtn = isShowAlbumBtn;
    params.shootMode = shootMode;
    return params;
}

@end
